<include file="__THEME__/header" />
<style>
.cw {
	margin:50px auto 0;
	width:560px;
	padding-bottom:100px;
}
.ld {
	font-size:14px;
	font-weight:bold;
}
.rd {
	font-size:14px;
	color:#666;
}
.w500 {
	width:460px;
	height:102px;
}
</style>
<script language="javascript" type="text/javascript">
function checkData(){
    var emailPattern = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
	var email = $('#email').val();
    if (emailPattern.test(email)==false){
		alert('邮件地址格式不正确。');
        return false;
    }
	
	var title = $('#title').val();
    if(title==''){
		alert('邮件标题不能为空。');
		return false;
	}
	
	var content = $('#content').val();	
    if(content==''){
		alert('邮件内容不能为空。');
		return false;
	}
	
	return true;
}
</script>
<div class="contents">
    <div class="cw">
    <form method="post" action="{:U('home/mail/doSend')}" onsubmit="return checkData()">
        <input type="hidden" name="email" id="email" value="{:t($_GET['email'])}" />
        <table border="0">
            <tr height="80">
                <td align="left"><img class="pr10" src="__PUBLIC__/themes/blue/images/bulid_pic.gif" ></td>
                <td align="left" class="rd">谢谢您对Hi3MS的支持,请填写以下邮件内容。</td>
            </tr>
            <tr height="40">
                <td align="left" valign="top" class="ld">邮件标题：</td>
                <td align="left" class="lh20 rd" valign="top"><input name="title" type="text" class="in_put cl06" id="title" style="width:400px;"/></td>
            </tr>
            <tr>
                <td align="left" valign="top" class="ld">邮件内容：</td>
                <td align="left" class="rd"><textarea name="content" class="w500 in_put cl06" id="content"></textarea></td>
            </tr>
            <tr height="50">
                <td align="left">&nbsp;</td>
                <td align="left"><input class="btn_sea" type="submit" value="发送邮件" /></td>
            </tr>
        </table>
     </form>
    </div>
</div>
<include file="__THEME__/footer" />